package presentation.teacherui;

import java.awt.event.MouseAdapter;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class SelfMessageFrame extends MouseAdapter{
	JFrame seFrame;
	JLabel seLabel;
	String file = "image/teacher/Framework.jpg";
	String buttonFile = "image/teacher/button.png";
	
	JLabel buttonLabel;
	public void startSelfMessage(Teacher teacher){
		seFrame = new JFrame();
		seFrame.setSize(vo.AlwaysUsedData.ScreenSize);
		seFrame.setAlwaysOnTop(true);
		seFrame.setUndecorated(true);
		
		seLabel = new JLabel(new ImageIcon(file));
		seLabel.setSize(vo.AlwaysUsedData.ScreenSize);
		seLabel.addMouseListener(this);
		
		buttonLabel = new JLabel(new ImageIcon(buttonFile));
		buttonLabel.setBounds(0,0,236,767);
		buttonLabel.addMouseListener(this);
		seLabel.add(buttonLabel);
		buttonLabel.setVisible(true);
		
		seLabel.setVisible(true);
		seFrame.add(seLabel);
		seFrame.setVisible(true);
	}
}